# New ports collection makefile for:	cs-winpasswd
# Date created:				2006-09-12
# Whom:					Yuan-Hsiang Liu <liuyh@cs.nctu.edu.tw>
#
# $Id: Makefile 209 2006-10-19 20:03:23Z gslin $
#

PORTNAME=	winpasswd
PORTVERSION=	1.2
PORTREVISION=	3
CATEGORIES=	cs
MASTER_SITES=	#
DISTFILES=	#

MAINTAINER=	ta@cs.NCTU.edu.tw
COMMENT=	Install winpasswd dependencies and create links

RUN_DEPENDS=	${SITE_PERL}/Net/LDAP.pm:${PORTSDIR}/net/p5-perl-ldap \
    		${SITE_PERL}/${PERL_ARCH}/Term/ReadKey.pm:${PORTSDIR}/devel/p5-Term-ReadKey \
		${SITE_PERL}/Crypt/SmbHash.pm:${PORTSDIR}/security/p5-Crypt-SmbHash

NO_BUILD=	yes
USE_PERL5_RUN=	yes

PLIST_FILES=	bin/passwd bin/winpasswd bin/unixpasswd

do-install:
	${INSTALL_SCRIPT} ${FILESDIR}/winpasswd ${TARGETDIR}/bin
	${LN} -s winpasswd ${TARGETDIR}/bin/passwd || ${TRUE}
	${LN} -s winpasswd ${TARGETDIR}/bin/unixpasswd || ${TRUE}

.include <bsd.port.mk>
